﻿namespace QDT.Core.Members
{
    public class UserAutoBid:Entity
    {
        public UserAutoBid(int userId, decimal loadMoney, int dealDateUpperLimit, decimal minLoadMoney, int moneyRateLowerLimit, decimal retainMoney)
        {
            UserId = userId;
            LoadMoney = loadMoney;
            DealDateUpperLimit = dealDateUpperLimit;
            MinLoadMoney = minLoadMoney;
            MoneyRateLowerLimit = moneyRateLowerLimit;
            RetainMoney = retainMoney;
        }

        public UserAutoBid()
        {
        }

        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { set; get; }
        /// <summary>
        /// 每次投资金额
        /// </summary>
        public decimal LoadMoney { set; get; }
        /// <summary>
        /// 最小投资金额
        /// </summary>
        public decimal MinLoadMoney { set; get; }
        /// <summary>
        /// 借款期限上限
        /// </summary>
        public int DealDateUpperLimit { set; get; }
        /// <summary>
        /// 年化率下限
        /// </summary>
        public int MoneyRateLowerLimit { set; get; }
        /// <summary>
        /// 账户保留金额
        /// </summary>
        public decimal RetainMoney { set; get; }
        /// <summary>
        /// 是否只投资可转让的债权
        /// </summary>
        public bool NotAssignAbleOnly { get; set; }
        /// <summary>
        /// 是非智能
        /// </summary>
        public bool YesNoIntelligence { get; set; }
        /// <summary>
        /// 已自动投标次数
        /// </summary>
        public int AutoTime { get; set; }
    }
}